package com.liangsui.mss.dto;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * LoginBodyDto
 *
 * @author zhangjiawei
 * @email 1533167396@qq.com
 * @date 2022/12/2 17:19
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class LoginBodyDto implements Serializable {
    /**
     * 用户名
     */
    @NotNull(message = "用户名不能为空")
    private String username;
    /**
     * 密码
     */
    @NotNull(message = "密码不能为空")
    private String password;
    /**
     * 验证码
     */
    @NotNull(message = "密码不能为空")
    private String code;
}
